﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace QuanLyGaRaOTo
{
    public partial class frmMain : Office2007RibbonForm
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void closeMdiChildren()
        {
            foreach (Form frm in this.MdiChildren)
                frm.Close();
        }

        private void buttonItem1_Click(object sender, EventArgs e)
        {
            closeMdiChildren();            

            PhieuTiepNhan.Presentation f = new PhieuTiepNhan.Presentation();
            f.MdiParent = this;
            f.Show();
        }

        private void buttonItem1_Click_1(object sender, EventArgs e)
        {
            closeMdiChildren();

            HieuXe.Presentation f = new HieuXe.Presentation();
            f.MdiParent = this;
            f.Show();
        }

        private void buttonItem2_Click(object sender, EventArgs e)
        {
            closeMdiChildren();

            VatTu.Presentation f = new VatTu.Presentation();
            f.MdiParent = this;
            f.Show();
        }
    }
}
